package com.bosssoft.permission.centre.service;



import com.bosssoft.permission.centre.pojo.dto.pcp.ResourceDTO;
import com.bosssoft.permission.centre.pojo.query.ResourceQuery;

import java.util.List;
/**
 * @Author: wang
 * @Time: 2022/3/18
 */
public interface ResourceService {

    /**
     * @param: 模糊查询条件
     * 1. 节点名称 name
     * 2. 父亲节点 parentId
     * @return: SubSystemDTOs
     * @see
     * @since
     */
    List<ResourceDTO> commonQuery(ResourceQuery resourceQuery);

    List<ResourceDTO> query(ResourceQuery resourceQuery);

    Boolean add (ResourceDTO resourceDTO);

    Boolean remove(Long id);

    Boolean batchDelete(ResourceDTO[] resourceDTOS);

    Boolean modify(ResourceDTO resourceDTO);

    ResourceDTO copy(Long id);

    ResourceDTO queryById(Long id);

    ResourceDTO findByParentId(Long id);

    List<ResourceDTO> queryResourceByMenu();

}
